package e

var MsgFlags = map[int]string{
	SUCCESS:             "处理成功",
	ERROR:               "处理失败",
	InvalidParams:       "请求参数错误",
	EnvErr: "环境信息获取失败",
	BossTokenErr: "获取boss登录token失败",
	BossOperatorIdErr: "获取用户的OperatorId失败",
	CustomerCreateErr: "创建客户失败",

	OpcAccountCreateErr: "创建账户失败",
	OpcQueryRemittanceErr: "查询流水失败",
	OpcCashOrderCreateErr: "现金充值失败",
	OpcCouponOrderCreateErr: "卡券充值失败",
	OpcCouponAuditErr: "卡券审核异常",

	LtsJobCreateErr: "lts任务创建失败",
	Nbgl2AddCashErr: "nbgl2添加流水失败",

	OtcProOrdinaryCreateErr: "普通订单创建失败",
	OtcProSettleCreateErr: "后付费订单创建失败",

	OecAddConsumeDataErr: "添加oec消耗记录失败",
}

// GetMsg get error information based on Code
func GetMsg(code int) string {
	msg, ok := MsgFlags[code]
	if ok {
		return msg
	}

	return MsgFlags[ERROR]
}